<?php

namespace app\company\validate;


class WarehouseAreaValidate extends BaseValidate
{
    public function __construct()
    {
        $rule = [
            'name' => 'require|max:50',
        ];

        $message = [
            'name.require' => '请输入库区名称',
            'name.max'     => '库区名称最多不能超过50个字符',
        ];

        $scene = [
            'add'   => ['name'],
        ];
        parent::__construct($rule, $message, $scene);
    }
}